<?php include 'application/views/header.php' ?>
<h4 class="page-title">Sửa nhóm tin tức</h4>
<div class="flash-message"><?php echo $this->session->flashdata('message') ?></div>
<form accept="<?php echo base_url() ?>articlecategory/add" method="post" 
    id="frmNewsGroup" enctype="multipart/form-data">
    <table width="100%" class="form add-news-group">
       <tr>
            <th>Tiêu đề nhóm</th>
            <td><input type="text" value="<?php echo isset($Articlecategory['NewsCategoryName']) ? $Articlecategory['NewsCategoryName'] : ''  ?>" name="NewsCategoryName" id="NewsCategoryName"/></td>
       </tr>
       <tr>
            <th>Mã nhóm</th>
            <td>
                <input type="text" name="NewsCategoryCode" id="NewsCategoryCode" 
                    value="<?php echo isset($Articlecategory['NewsCategoryCode']) ? $Articlecategory['NewsCategoryCode'] : '' ?>" />
            </td>
       </tr>
       <tr>
            <th>Thuộc nhóm</th>
            <td>
                <?php echo form_dropdown('NewsCategoryParent', $optionCategory, isset($Articlecategory['NewsCategoryParent']) ? $Articlecategory['NewsCategoryParent'] : '') ?>
            </td>
       </tr>
    </table>
    <div class="clr button-set">
        <input type="submit" value="Lưu nội dung" id="btnSave" />
        <input type="reset" value="Hủy nội dung vừa nhập" id="btnReset" />
        <input type="button" value="Về danh sách nhóm tin tức" id="btnBack" />
    </div>
</form>
<?php include 'application/views/footer.php' ?>
<script>
$('#btnBack').click(function(){
    window.location.href = '<?php echo base_url() ?>articlecategory.html'; 
});
</script>